package com.ticketbox.ejb.session;

import java.util.Vector;

import javax.ejb.Stateful;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

import com.ticketbox.ejb.session.interfaces.UserFacadeLocal;
import com.ticketbox.entity.Role;
import com.ticketbox.entity.Ticket;
import com.ticketbox.entity.User;

/**
 * Session Bean implementation class UserBean
 */
@Stateful(name="UserBean")
@NamedQueries(value = { @NamedQuery(name = "findUserByEmailAndPassword", query = "SELECT u FROM User u WHERE u.email = :email AND u.password > :password") })
public class UserBean implements UserFacadeLocal{

    /**
     * Default constructor. 
     */
    public UserBean() {
    }

	public void createUser(User user) {
		// TODO Auto-generated method stub
		
	}

	public void modifyUser(int id, User user) {
		// TODO Auto-generated method stub
		
	}

	public void modifyUser(User user) {
		// TODO Auto-generated method stub
		
	}

	public User getUserById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	public Vector<User> findAllUsers() {
		// TODO Auto-generated method stub
		return null;
	}

	public Vector<User> findUsersByRole(Role role) {
		// TODO Auto-generated method stub
		return null;
	}

	public Vector<User> findUsersByTicket(Ticket ticket) {
		// TODO Auto-generated method stub
		return null;
	}

	public void deleteUser(int id) {
		// TODO Auto-generated method stub
		
	}

	public boolean authenticate(String username, String password) {
		// TODO Auto-generated method stub
		return false;
	}

}
